package com.wnnight.wys.serviceImpl.config;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.wnnight.wys.entity.config.ChargeAccount;
import com.wnnight.wys.mapper.config.ChargeAccountMapper;
import com.wnnight.wys.service.config.ChargeAccountService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @ClassName: ChargeAccountImpl
 * @Description: //TODO
 * @author: LZJ
 * @date: 2022/8/27-19:37
 * @version: v1.0
 */
@Service("chargeAccountService")
@Transactional
public class ChargeAccountImpl extends ServiceImpl<ChargeAccountMapper, ChargeAccount> implements ChargeAccountService {
    @Resource
    private ChargeAccountMapper chargeAccountMapper;

    @Override
    public void add(ChargeAccount chargeAccount) {
        chargeAccountMapper.add(chargeAccount);
    }

    @Override
    public void update(ChargeAccount chargeAccount) {
        chargeAccountMapper.update(chargeAccount);
    }

    @Override
    public List<ChargeAccount> getAll() {
        return chargeAccountMapper.getAll();
    }

    @Override
    public ChargeAccount getById(int id) {
        return chargeAccountMapper.getById(id);
    }
}
